require 'mina/multistage'
require 'mina/deploy'
require 'mina/git'

set :domain, 'root@47.100.218.70'
set :deploy_to, '/data/xhgy_client'
set :repository, 'git@gitee.com:manyi/xhgy_client.git'
set :branch, 'master'


task :environment do
end

set :shared_files, ['app_dist/static/logo.png']

task :setup do
  command %[touch "#{fetch(:shared_path)}/app_dist/static/logo.png"]
end

desc "Deploys the current version to the server."
task :deploy do
  deploy do
    invoke :'git:clone'
    invoke :'deploy:link_shared_paths'
    invoke :'deploy:cleanup'
  end
end
